//package com.boot2.core.utils;
//
//import net.sf.jxls.exception.ParsePropertyException;
//import net.sf.jxls.transformer.XLSTransformer;
//import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
//
//import java.io.*;
//import java.util.Map;
//
///**
// * @author zhangweilin
// * @Description: 扩展的excel导出工具
// * @date 2019/6/13
// */
//public class HlXLSTransformer extends XLSTransformer {
//
//    /**
//     * 从输入流读取模板然后导出,inputStream适合于从jar包中获取指定配置文件
//     * @param inputStream
//     * @param beanParams
//     * @param destFilePath
//     * @throws ParsePropertyException
//     * @throws IOException
//     * @throws InvalidFormatException
//     */
//    public void transformXLS(InputStream inputStream, Map beanParams, String destFilePath) throws ParsePropertyException, IOException, InvalidFormatException {
//        org.apache.poi.ss.usermodel.Workbook workbook = transformXLS(inputStream, beanParams);
//        OutputStream os = new BufferedOutputStream(new FileOutputStream(destFilePath));
//        workbook.write(os);
//        inputStream.close();
//        os.flush();
//        os.close();
//    }
//}
